#include "newDialog.h"


newDialog::newDialog() 
{
    lineEdit= new QLineEdit;
    pushButton=new QPushButton("get");
    QHBoxLayout *hLay = new QHBoxLayout();
    hLay->addWidget(lineEdit);
    hLay->addWidget(pushButton);
    setLayout(hLay);
    connect(pushButton, SIGNAL(clicked()), this, SLOT(on_pushButton_clicked()));
}

newDialog::~newDialog()
{
    
}

void newDialog::on_pushButton_clicked()
{
    this->str = lineEdit->text();
    qDebug() << str << endl;
    this->close();
}



